import { Modal } from 'antd'
import React, { Fragment, } from 'react'


export default function ShowAnnouncement({
  open,
  onCancel,
  announcementItemInfor
}) {

  return (
    <Fragment >
      <Modal
        title={<h1 style={{textAlign:'center',fontSize:"20px"}}>{announcementItemInfor?.fd_title}</h1>}
        okText="确定"
        cancelText="返回"
        centered
        open={open}
        onOk={onCancel}
        onCancel={onCancel}
        width={1000}
        bodyStyle={{height:"37rem",overflowY:"auto"}}
        headStyle={{}}
      >
        {
          // <div dangerouslySetInnerHTML={{__html: textValue}}></div>
          <div dangerouslySetInnerHTML={{__html:announcementItemInfor?.fd_content }}></div>
        }
      </Modal>
    </Fragment>
  )
}
